
// 发布对文章的评论
const createPost = async payload =>{
	const {
		post_id,
		comment_content
	} = payload
	
	const db = uniCloud.database()
	const comments = db.collection("comments")
	
	
	// 针对文章的评论
	const comment_type = 0
	
	const res = comments.add({
		post_id,
		comment_content,
		comment_type
	})
	
	return res
}

export default{
	createPost
}